<!DOCTYPE html>
<html>
{include file="public/head" /}
<style>
td {
	font-size:13px;
}
</style>
<body class="zanpian-body">
<section class="content">
  <div class="callout callout-title">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
    <h4>{$nav.title}</h4>
    {notempty name="nav.remark"}
    <p>{$nav.remark}</p>
    {/notempty} </div>
  <div class="panel-body" id="contents">
    <div class="panel-tool">
      <div class="row">
      <div class="col-md-4 col-sm-4 col-xs-12 mb15">
                <div id="toolbar" class="toolbar">
                <a href="{:url('index')}" class="btn btn-primary ajax-url" ><i class="fa fa-refresh"></i> </a> <a href="{:url('add')}" data-name="添加配置" class="btn btn-success btn-add btn-editone" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-plus"></i> 添加</a> <a  href="{:url('del')}" form="#list" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a><span id="selectedChks">已选择<strong></strong>记录</span>
                </div>
                <!-- /.toolbar -->
              </div>
             <div class="col-md-8 col-sm-12 col-xs-12 mb15">
               <div class="columns-right pull-right">
                <form class="form-inline form-search nice-validator n-default" id="form-search" method="post">
                <div class="input-group" style="position:static">
                <!-- /btn-group -->
                <div class="input-group-btn">
                  <button type="button" class="btn btn-default" style="border-radius:0;">时间搜索：</button>
                </div>
                <input class="form-control datetimepicker" name="start_time" value="" placeholder="开始时间" id="createtime" data-date-format="YYYY-MM-DD HH:mm:ss" type="datetime" style="width:48%;"><span style="width:4%; float:left; margin-top:5px; text-align:center"> - </span>
                <input class="form-control datetimepicker" name="end_time" value="" placeholder="结束时间" id="createtime" data-date-format="YYYY-MM-DD HH:mm:ss" type="datetime" style="width:48%">
                <div class="input-group-btn">
                  <button type="submit" class="btn btn-default ajax-post" title="普通搜索" form="#form-search"><i class="glyphicon glyphicon-search"></i></button>
                </div>                
              </div>
</form>
              </div>               
              <div class="pull-right search">
                <select name="status" class="form-control select2 margin10" type="ajax-select">
                  <option value="{:url('index')}">状态筛选</option>
                  <option value="{:url('index',array('id'=>$id,'status'=>1,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="status" value="1"}selected{/eq}>已审</option>
                  <option value="{:url('index',array('id'=>$id,'status'=>0,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="status" value="0"}selected{/eq}>未审</option>
                </select>
              </div>                                        
             </div>
            </div>

</div>
<!-- /.panel-tool -->
    <div class="tab-content">
      <form id="list" method="post">
        <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
          <thead>
            <tr>
              <th style="text-align:center;vertical-align: middle; width:5%"> <label class="pretty success">
                <input type="checkbox" id="checkall" class="delcheckall">
                <label><i class="mdi mdi-check"></i></label>
                </label>
              </th>
              <th style="text-align:center;vertical-align: middle;"> {eq name="orders" value="id desc"}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'id','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">编号 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'id','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">编号 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="id desc"}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'id','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">会员组 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'id','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">会员组 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">用户</th>
              <th style="text-align:center;vertical-align: middle;" class="hidden-xs">邮箱</th>
<th style="text-align:center;vertical-align: middle;">{eq name="orders" value="score desc"}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'score','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">积分 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'score','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">积分 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;" class="hidden-xs">相关</th>
              <th style="text-align:center;vertical-align: middle;" class="hidden-xs">{eq name="orders" value="login desc"}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'login','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">登录 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'login','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">登录 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;" class="hidden-xs">{eq name="orders" value="last_login_time desc"}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'last_login_time','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">时间 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('id'=>$id,'status'=>$status,'start_time'=>$start_time,'end_time'=>$end_time,'wd'=>$wd,'type'=>'last_login_time','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">时间 <i class="fa fa-angle-down"></i></a>{/eq}</th>
              <th style="text-align:center;vertical-align: middle;">操作</th>
            </tr>
          </thead>
          <tbody>
          
          {notempty name="list"}
          {volist name="list" id="vo"}
          <tr>
            <td class="bs-checkbox" style="text-align:center;vertical-align:middle; font-size:14px">
            <label class="pretty success">
              <input type="checkbox" name="id[]" value="{$vo['user_id']}" id="checkbox">
              <label><i class="mdi mdi-check"></i></label>
              </label></td>
            <td style="text-align:center;vertical-align: middle;">{$vo.user_id}</td>
            <td style="text-align:center;vertical-align: middle;">{$vo['title']}</td>
            <td style="text-align:center;vertical-align: middle;"><a href="{:zanpian_user_url('user/home/index',$vo)}" target="_blank" class="text-link">{$vo.user_name|msubstr=0,6,'...'}</a></td>
            <td style="text-align:center;vertical-align: middle;" class="hidden-xs">{$vo.user_email}</td>
            <td style="text-align:center;vertical-align: middle;"><a  class="addscore text-link" href="{:url('addscore',array('uid'=> $vo['user_id'],'view'=>1))}" data-name="曾减用户积分VIP">{$vo.user_score}</a></td>
            <td style="text-align:center;vertical-align: middle;" class="hidden-xs">
             <a  class="btn-editone text-link" href="{:url('admin/part/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的剧情" data-width="100%" data-height="100%" data-offset="0px">剧情</a>
             <a  class="btn-editone text-link" href="{:url('admin/role/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的角色" data-width="100%" data-height="100%" data-offset="0px">角色</a>
             <a  class="btn-editone text-link" href="{:url('admin/lines/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的台词" data-width="100%" data-height="100%" data-offset="0px">台词</a>
             <a  class="btn-editone text-link" href="{:url('admin/theme/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的话题" data-width="100%" data-height="100%" data-offset="0px">话题</a>
             <a  class="btn-editone text-link" href="{:url('admin/music/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的歌曲" data-width="100%" data-height="100%" data-offset="0px">歌曲</a><br>
            <a  class="btn-editone text-link" href="{:url('admin/cm/index',array('uid'=> $vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的评论" data-width="100%" data-height="100%" data-offset="0px">评论</a>
            <a class="btn-editone text-link" href="{:url('admin/gb/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的留言" data-width="100%" data-height="100%" data-offset="0px">留言</a>
            <a  class="btn-editone text-link" href="{:url('admin/msg/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的私信" data-width="100%" data-height="100%" data-offset="0px">私信</a>
                <a class="btn-editone text-link" href="{:url('admin/orders/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的订单" data-width="100%" data-height="100%" data-offset="0px">订单</a>
                <br>
             <a  class="btn-editone text-link" href="{:url('admin/score/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的消费" data-width="100%" data-height="100%" data-offset="0px">消费</a>
             
             <a  class="btn-editone text-link" href="{:url('admin/playlog/index',array('uid'=>$vo['user_id'],'view'=>1))}" data-name="管理用户{$vo.user_name}的云播" data-width="100%" data-height="100%" data-offset="0px">云播</a>
             <a  class="btn-editone text-link" href="{:url('admin/user/vod',array('uid'=>$vo['user_id'],'sid'=>'remind'))}" data-name="管理用户{$vo.user_name}的订阅" data-width="100%" data-height="100%" data-offset="0px">订阅</a>
             <a  class="btn-editone text-link" href="{:url('admin/user/vod',array('uid'=>$vo['user_id'],'sid'=>'favorite'))}" data-name="管理用户{$vo.user_name}的收藏" data-width="100%" data-height="100%" data-offset="0px">收藏</a>


             
             </td>
                 
            <td style="text-align:center;vertical-align: middle;" class="hidden-xs">{$vo.user_login}</td>
           
            <td style="text-align:center;vertical-align: middle;" class="hidden-xs">{$vo.user_last_login_time|date='Y-m-d H:i:s',###}</td>
            <td style="text-align:center;vertical-align: middle;"> {eq name="vo.user_status" value="1"} <a class="btn btn-info btn-xs btn-facebook ajax-post" href="{:url('status',array('id'=> $vo['user_id'],'status'=>0))}">已审</a>{else /}<a class="btn btn-info btn-xs btn-danger ajax-post" href="{:url('status',array('id'=> $vo['user_id'],'status'=>1))}">未审</a>{/eq} <a href="{:url('addscore',array('uid'=>$vo['user_id']))}"  data-name="增加积分" class="btn btn-success addscore btn-xs" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-pencil"></i> 增加积分</a> <a href="{:url('edit',array('id'=>$vo['user_id']))}"  data-name="编辑" class="btn btn-success btn-editone btn-xs" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-pencil"></i> 编辑</a> <a href="{:url('del',array('id'=>$vo['user_id']))}" class="confirm btn btn-danger btn-xs confirm ajax-post"><i class="fa fa-trash-o"></i> 删除</a></td>
          </tr>
          {/volist}
          {else/}
          <tr>
            <td style="text-align:center;vertical-align: middle;" colspan="15" >抱歉，没有找到相关内容！</td>
          </tr>
          {/notempty}
          </tbody>
          
        </table>
      </form>
    </div>
    {gt name="list->lastPage()" value="1"}
    <div class="panel-page">
      <div class="pull-left panel-page-info hidden-xs"><span class="pagination-info">共{$list->total()}条 {$list->currentPage()}/{$list->lastPage()} </span><span class="page-list">每页显示 {$list->listRows()} 条</span></div>
      <div class="panel-page-url ajax-page">
        <ul class="pagination">
          {$list->render()}
          <div class="panel-page-select pull-left">
            <select class="select2 ajax-select" data-url="{:url_page(request()->action(),request()->param(),1)}">
              <option value="10" {eq name="limit" value="10"}selected{/eq}>
              10 条/页
              </option>
              <option value="20" {eq name="limit" value="20"}selected{/eq}>
              20 条/页
              </option>
              <option value="30" {eq name="limit" value="30"}selected{/eq}>
              30 条/页
              </option>
              <option value="40" {eq name="limit" value="40"}selected{/eq}>
              40 条/页
              </option>
              <option value="50" {eq name="limit" value="50"}selected{/eq}>
              50 条/页
              </option>
              <option value="99" {eq name="limit" value="99"}selected{/eq}>
              99 条/页
              </option>
            </select>
          </div>
          <div class="panel-page-jump ">
            <input type="input" name="page" id="page" min="1" value="{$list->currentPage()}" class="form-control"/>
            <input type="button" value="跳 转" data-url="{:url_page(request()->action(),request()->param())}" class="btn btn-default ajax-jump" />
          </div>
        </ul>
      </div>
    </div>
    <!-- /.panel-page -->
    {/gt} </div>
  <!-- /.panel-body -->
</section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.all();
	$(document).on("click", ".addscore", function(e) {
		zanpian.api.popurl($(this).attr('href'), $(this).data("name"));
		return false;
	});	
});	
</script>
</body>
</html>
